package drg_group.chs_drg_11.ADRG;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import drg_group.chs_drg_11.Base;
import drg_group.chs_drg_11.MedicalRecord;
import drg_group.chs_drg_11.DRG.MDCN_DRG;

public class NB1 {
    public static String group(MedicalRecord record){
        String[] adrg_zd={};
        String[] adrg_zd1={};
        String[] adrg_ss={"48.7300x001","48.7301","48.7303","57.8305","57.8400x004","57.8400x005","57.8402","57.8403","57.8404","57.8405","67.6201","67.6202","69.2200x006","69.2200x007","69.2200x008","69.2200x009","69.2200x010","69.2200x011","69.2200x012","69.2200x013","69.2200x014","69.2200x015","69.2200x016","69.2200x017","69.2200x018","69.2200x019","69.2200x020","69.2200x021","69.2200x022","69.2200x023","69.2200x024","69.2200x025","69.2200x030","69.2200x031","69.2201","69.2202","69.2203","69.2204","69.2205","69.2206","69.2207","69.2208","69.2209","69.2210","69.2211","69.2212","69.2300","69.2901","69.4100","69.4200","69.4201","69.4900x005","69.4900x006","69.4901","69.4902","69.4903","69.4904","69.9400","70.5001","70.5002","70.5100","70.5101","70.5102","70.5200","70.5201","70.5202","70.5300x001","70.5300x002","70.5304","70.5305","70.5305","70.5305","70.5305","70.5400x001","70.5400x002","70.5500x001","70.5500x002","70.6100","70.6101","70.6200x002","70.6300x001","70.6300x002","70.6300x003","70.6301","70.6400x001","70.6400x001","70.7200","70.7300","70.7400x001","70.7401","70.7501","70.7700x004","70.7701","70.7702","70.7703","70.7800x001","70.7800x002","70.7801","70.7802","70.8x00","70.9100x001","70.9200x001","70.9201","70.9300x001","71.6200","71.6200x002","71.7201","71.7202","71.7900x001","71.7900x008","71.7900x009","71.7900x010","71.7900x011","71.7900x012","71.7900x013","71.7901","71.7902","71.7903","71.7904"};
        String[] adrg_ss1={};
        
        if (true && record.ssList!=null && record.ssList.length>0 && Base.contains(adrg_ss,record.ssList[0])){
            Base.groupMessages.putMessage(record.Index,"符合NB1入组条件，匹配规则：主手术匹配");
                
            if (MDCN_DRG.NB19_group(record)){
                return "NB19";
            }

            return "NB1";
        }else{
            return "";
        }
    }
}

